<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>03flex设置侧轴对齐方式（多行）</title>
    <style>
        div {
            display: flex;
            width: 600px;
            height: 500px;
            background-color: pink;
            flex-wrap: wrap;
            align-content: space-around;
        }
        
        div span {
            width: 150px;
            height: 100px;
            background-color: forestgreen;
            margin: 5px;
        }
    </style>
</head>

<body>
    <div>
        <span>1</span><span>2</span><span>3</span><span>4</span><span>5</span><span>6</span><span>7</span>
    </div>
</body>

</html>